
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.app.common;

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.pay.enums.CommonEnum;
import com.hlkj.pay.vo.common.req.CommonAppReq;
/**
 * @author monk@techsun.com
 * @date 2023/04/25 14:30
 */
public interface ICommonConfigAppService {
	/**
	 * add config
	 * @param addTemplateReq
	 * @return
	 */
	CommonResult<String> addCommonApp(CommonAppReq addCommonAppReq);
	/**
	 * update config
	 * @param updateTemplateReq
	 * @return
	 */
	CommonResult<Void> updateCommonApp(CommonAppReq updateCommonAppReq);
	/**
	 * delete config
	 * @param id
	 * @return
	 */
	CommonResult<Void> deleteCommonApp(Long id);
	/**
	 * update status
	 * @param id
	 * @param yesNoType
	 * @return
	 */
	CommonResult<Void> statusUpdate(Long id, CommonEnum.YES_NO_TYPE yesNoType);
}
